package pers.cocoadel.springcloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pers.cocoadel.springcloud.domain.Account;

import java.math.BigDecimal;

@Mapper
public interface AccountDao
{
    void update(@Param("userId") Long userId, @Param("used") BigDecimal used, @Param("residue")BigDecimal residue);

    Account getByUserId(Long userId);
}
